<?php

class Footermenu_Form_Admin_Editcategory extends Engine_Form {
	public function init() {
		// Set form attributes
		$this->setTitle ( 'Edit Category' );
		$this->setDescription ( "" );
		
		// Element: title
		$this->addElement ( 'Hidden', 'cid', array () );
		
		// Element: title
		$this->addElement ( 'Text', 'category', array ('label' => 'Category Name', 'allowEmpty' => false, 'required' => true ) );
		
		// Buttons
		$this->addElement ( 'Button', 'submit', array ('label' => 'Edit Category', 'type' => 'submit', 'ignore' => true, 'decorators' => array ('ViewHelper' ) ) );
		
		$this->addElement ( 'Cancel', 'cancel', array ('label' => 'cancel', 'link' => true, 'prependText' => ' or ', 'href' => '', 'decorators' => array ('ViewHelper' ) ) );
		$this->addDisplayGroup ( array ('submit', 'cancel' ), 'buttons' );
		$button_group = $this->getDisplayGroup ( 'buttons' );
	}
}